package com.shop.cereshop.app.service.discount;

import com.shop.cereshop.app.domain.activity.ActivityData;
import com.shop.cereshop.app.page.tool.ToolProduct;
import com.shop.cereshop.commons.domain.tool.CereShopDiscountDetail;
import com.shop.cereshop.commons.exception.CoBusinessException;

import java.math.BigDecimal;
import java.util.List;

public interface CereShopDiscountDetailService {
    CereShopDiscountDetail findSkuDetail(Long shopDiscountId, Long orderId);

    void updateNumber(CereShopDiscountDetail detail) throws CoBusinessException;

    ActivityData findPriceBySkuId(Long skuId);

    List<ToolProduct> findDistinctProducts(Long shopDiscountId);

    int findNumber(Long shopDiscountId, Long skuId);

    void updateBatch(List<CereShopDiscountDetail> discountDetails) throws CoBusinessException;

    List<CereShopDiscountDetail> findNumberDetails(Long orderId, Long shopDiscountId);
}
